<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:h="http://java.sun.com/jsf/html"
      xmlns:f="http://java.sun.com/jsf/core"
      xmlns:ui="http://java.sun.com/jsf/facelets"
      xmlns:p="http://primefaces.org/ui">
      
	<ui:composition template="/templates/template.xhtml">
			<ui:define name="pageTitle">Usuário</ui:define>
			<ui:define name="pageHeader">Alteração de senha</ui:define>
			<ui:define name="body">
				<h:form id="alterarSenha">
					<h:messages/>
					<h:inputHidden value="#{usuarioBean.usuarioSelecionado.id}" />
					<h:panelGrid columns="2">
						<h:outputLabel id="Lbl_senha" value="Senha" />
						<h:inputSecret id="Txt_senha" value="#{usuarioBean.usuarioSelecionado.senha}" required="true"/>
						<h:outputLabel id="Lbl_senha2" value="Confirme a senha" />
						<h:inputSecret id="Txt_senha2"  value="#{usuarioBean.usuarioSelecionado.senha}" required="true" />
					</h:panelGrid>
					<h:commandButton action="#{usuarioBean.alterarSenhaUsuario()}" value="Salvar" onclick="return validatepw();"/>
					<h:commandButton action="paginaInicial" value="Voltar" immediate="true"/>					
				</h:form>				
			</ui:define>
	</ui:composition>

</html>